package com.ruoyi.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.ScAreaMapper;
import com.ruoyi.business.domain.ScArea;
import com.ruoyi.business.service.IScAreaService;

/**
 * 省市区Service业务层处理
 *
 * @author ruoyi
 * @date 2024-09-19
 */
@Service
public class ScAreaServiceImpl implements IScAreaService
{
    @Autowired
    private ScAreaMapper scAreaMapper;

    /**
     * 查询省市区
     *
     * @param id 省市区主键
     * @return 省市区
     */
    @Override
    public ScArea selectScAreaById(Long id)
    {
        return scAreaMapper.selectScAreaById(id);
    }

    /**
     * 查询省市区列表
     *
     * @param scArea 省市区
     * @return 省市区
     */
    @Override
    public List<ScArea> selectScAreaList(ScArea scArea)
    {
        return scAreaMapper.selectScAreaList(scArea);
    }

    /**
     * 新增省市区
     *
     * @param scArea 省市区
     * @return 结果
     */
    @Override
    public int insertScArea(ScArea scArea)
    {
        return scAreaMapper.insertScArea(scArea);
    }

    /**
     * 修改省市区
     *
     * @param scArea 省市区
     * @return 结果
     */
    @Override
    public int updateScArea(ScArea scArea)
    {
        return scAreaMapper.updateScArea(scArea);
    }

    /**
     * 批量删除省市区
     *
     * @param ids 需要删除的省市区主键
     * @return 结果
     */
    @Override
    public int deleteScAreaByIds(Long[] ids)
    {
        return scAreaMapper.deleteScAreaByIds(ids);
    }

    /**
     * 删除省市区信息
     *
     * @param id 省市区主键
     * @return 结果
     */
    @Override
    public int deleteScAreaById(Long id)
    {
        return scAreaMapper.deleteScAreaById(id);
    }
}
